//
//  TMShareData.m
//  TMtravel
//
//  Created by Playboy on 2017/3/16.
//  Copyright © 2017年 tmkj. All rights reserved.
//

#import "TMShareData.h"

@implementation TMShareData

+(TMShareData *)shareData
{
    static TMShareData *shareData = nil;
    static dispatch_once_t oneToken;
    dispatch_once(&oneToken, ^{
        shareData = [[TMShareData alloc]init];
    });
    return  shareData;
}

- (void)pushLogin {
//    PBLoginViewController *loginVC = [[PBLoginViewController alloc] init];
//    TMNavViewController *nav = [[TMNavViewController alloc] initWithRootViewController:loginVC];
////    loginVC.fatherVC = self.homeVC;
////    self.tarBarVC.selectedIndex = 0;
////    [self.homeVC presentViewController:nav animated:YES completion:nil];
//    [self.myNav pushViewController:loginVC animated:YES];
    
}
- (void)loginOut {
//    [kUserDefaults setBool:NO forKey:@"isLogin"];
//    [kUserDefaults setObject:@"" forKey:@"userID"];
//    [kUserDefaults setObject:@"" forKey:@"token"];
//    [TMShareData shareData].user = nil;
//    self.tarBarVC.selectedIndex = 0;
//    [self.homeVC popToRootViewControllerAnimated:YES];
}
@end
